import Field from 'winged/utils/wt-model-field'
import ModelConfig from 'winged/utils/wt-model-config'
import admission from './config/admission'
import course from './config/course'
import surgery from './config/surgery'
import image from './config/image'
import examination from './config/examination'
import complication from './config/complication'
import discharge from './config/discharge'
/**
 * 病例模块的分类数据模型配置，categories里的每一个对象是一个model数据模型定义。
 */
let config = {
	timeline: {
		url: 'doctor/patient/case_outline/',
		urlAppendParam: 'case_id',
		transfer: true,
		method: 'GET',
	},
	categories: [
		admission,
		course,
		surgery,
		image,
		examination,
		complication,
		discharge,
	]
};

// 对配置进行预处理
ModelConfig.processModels(config.categories);

export default config;